<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="fontface/iconfont.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/video-js.min.css">

    <!-- <link rel="stylesheet" href="css/share.css"> -->
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/ly.css">

    <script src="js/jquery-1.11.0.js"></script>
    <script src="js/share.js"></script>
    <script src="js/swiper.js"></script>
    <script src="js/video.min.js"></script>

    <title>首页</title>
</head>

<body>
    <div class="flex">
        <!--菜单-->
        <div class="cp-menu">
            <div class="cp-menu-icon flex flex-pac cff">
                设备管理
            </div>
            <ul class="nav">
                <li class="nav-item">
                    <div class="flex flex-ac plr20">
                        <img class="mr10"
                            src=""
                            alt="">
                        <span class="flex-f1">设备管理</span> <i class="lxjiconfont xiangyou1"></i>
                    </div>
                    <ul class="sub active">
                        <li><a href="通道列表.html?sub=0" class="sub-item">通道列表</a></li>
                        <li><a href="设备信息.html?sub=1" class="sub-item">设备信息</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--内容-->
        <div class="cp-container">
            <!--头部-->
            <header class="cp-header flex flex-ac">
                <div class="cp-header-content flex-f1">
                    通道列表
                </div>
                <!-- <img class="cp-header-img" src="./images/banner.png" alt=""> -->
                <p class="cp-header-name mr10">liyang</p>
                <input type="submit" class="login-out flex flex-pac" value="退出">
            </header>
            <!--面包屑-->
            <div class="el-breadcrumb flex flex-ac">
                <!-- 设备管理 <span>/</span> 温度曲线 -->
            </div>
            <!--任务列表-->
            <div class="bi-info">
                <table class="cp-table">
                    <thead class="">
                        <tr class="flex flex-ac">
                            <th colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">检测点</div>
                            </th>
                            <th colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">操作</div>
                            </th>
                        </tr>
                        <tr class="flex flex-ac bb">
                            <td colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">通道一</div>
                            </td>
                            <td colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">
                                    <a class="cell-btn" href="温度曲线.html">查看</a>
                                </div>
                            </td>
                        </tr>
                        <tr class="flex flex-ac bb">
                            <td colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">通道二</div>
                            </td>
                            <td colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">
                                    <a class="cell-btn" href="温度曲线.html">查看</a>
                                </div>
                            </td>
                        </tr>
                        <tr class="flex flex-ac bb">
                            <td colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">通道三</div>
                            </td>
                            <td colspan="1" rowspan="1" class="table-column flex-f1">
                                <div class="cell">
                                    <a class="cell-btn" href="温度曲线.html">查看</a>
                                </div>
                            </td>
                        </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>

</body>

</html>
<script>
    $(function () {
        //从url里边拿数据
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }

        var navIndex = 0, subItemIndex = 0;
        navIndex = GetQueryString("nav");
        subItemIndex = GetQueryString("sub");
        console.log($('.nav .nav-item').eq(navIndex).addClass("active").find('.sub-item').eq(subItemIndex).addClass("active"))
        $('.nav .nav-item').click(function () {
            $(this).children().slideDown(1000)
            $(this).siblings().children(".sub").slideUp(1000)
        })
    })
</script>